package com.kksoft.readcm.objects;

import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import com.kksoft.readcm.activity.App;
import com.kksoft.readcm.b.h;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.b.a.a.j;
import org.json.JSONObject;

public final class l
{
	private static int O;
    private static boolean P = false;
    private static AtomicBoolean Q = new AtomicBoolean(true);
    private static AtomicBoolean R = new AtomicBoolean(false);
    private static AtomicBoolean S = new AtomicBoolean(false);
    private static AtomicInteger T = new AtomicInteger();
    private static AtomicInteger U = new AtomicInteger();
    private static final Pattern a = Pattern.compile("(\\%(?:[0-9][a-z]|[a-z][0-9]))", 2);
    private static final Object d = new Object();
    private final Object A;
    private ArrayList B;
    private String C;
    private final Object D;
    private HashMap E;
    private int F;
    private final Object G;
    private HashMap H;
    private HashMap I;
    private AtomicBoolean J;
    private boolean K;
    private AtomicBoolean L;
    private final Object M;
    private ArrayList N;
    private final int b;
    private final int c;
    private final String e;
    private final String f;
    private final Object g;
    private String h;
    private String i;
    private String j;
    private String k;
    private String l;
    private final Object m;
    private String n;
    private String o;
    private AtomicLong p;
    private final Object q;
    private String r;
    private String s;
    private final Object t;
    private int u;
    private int v;
    private boolean w;
    private AtomicBoolean x;
    private h y;
    private h z;

    public l(int i1, int j1, String s1, String s2, String s3, String s4)
    {
        Object obj = new Object();
        g = obj;
        Object obj1 = new Object();
        m = obj1;
        AtomicLong atomiclong = new AtomicLong(0L);
        p = atomiclong;
        Object obj2 = new Object();
        q = obj2;
        Object obj3 = new Object();
        t = obj3;
        u = 0;
        v = 0;
        w = false;
        AtomicBoolean atomicboolean = new AtomicBoolean(false);
        x = atomicboolean;
        Object obj4 = new Object();
        A = obj4;
        Object obj5 = new Object();
        D = obj5;
        F = 0;
        Object obj6 = new Object();
        G = obj6;
        AtomicBoolean atomicboolean1 = new AtomicBoolean(false);
        J = atomicboolean1;
        K = true;
        AtomicBoolean atomicboolean2 = new AtomicBoolean(false);
        L = atomicboolean2;
        Object obj7 = new Object();
        M = obj7;
        ArrayList arraylist = new ArrayList();
        N = arraylist;
        if(s1 == null)
            throw new NullPointerException();
        Object obj8;
        if(j1 == 0)
            obj8 = V();
        else
            obj8 = j1;
        c = 0;//((int) (obj8));
        if(i1 == 0)
            obj8 = c * -1;
        else
            obj8 = i1;
        b = 0;//((int) (obj8));
        e = s1;
        if(s2 == null)
            obj8 = f(s1);
        else
            obj8 = s2;
        f = ((String) (obj8));
        h = s3;
        i = s4;
        C = "";
    }

  public l(int paramInt, String paramString)
  {
    Object localObject1 = new Object();
    this.g = localObject1;
    Object localObject2 = new Object();
    this.m = localObject2;
    AtomicLong localAtomicLong = new AtomicLong(0L);
    this.p = localAtomicLong;
    Object localObject3 = new Object();
    this.q = localObject3;
    Object localObject4 = new Object();
    this.t = localObject4;
    this.u = 0;
    this.v = 0;
    this.w = false;
    AtomicBoolean localAtomicBoolean1 = new AtomicBoolean();
    this.x = localAtomicBoolean1;
    Object localObject5 = new Object();
    this.A = localObject5;
    Object localObject6 = new Object();
    this.D = localObject6;
    this.F = 0;
    Object localObject7 = new Object();
    this.G = localObject7;
    AtomicBoolean localAtomicBoolean2 = new AtomicBoolean();
    this.J = localAtomicBoolean2;
    this.K = true;
    AtomicBoolean localAtomicBoolean3 = new AtomicBoolean();
    this.L = localAtomicBoolean3;
    Object localObject8 = new Object();
    this.M = localObject8;
    ArrayList localArrayList = new ArrayList();
    this.N = localArrayList;
    if (paramString == null)
      throw new NullPointerException();
    int i1 = V();
    this.c = i1;
    if (paramInt == 0);
    for (int i2 = this.c * -1; ; i2 = paramInt)
    {
      this.b = i2;
      this.e = paramString;
      String str = f(paramString);
      this.f = str;
      this.C = "";
      return;
    }
  }

  public l(String paramString)
  {
    Object localObject1 = new Object();
    this.g = localObject1;
    Object localObject2 = new Object();
    this.m = localObject2;
    AtomicLong localAtomicLong = new AtomicLong(0L);
    this.p = localAtomicLong;
    Object localObject3 = new Object();
    this.q = localObject3;
    Object localObject4 = new Object();
    this.t = localObject4;
    this.u = 0;
    this.v = 0;
    this.w = false;
    AtomicBoolean localAtomicBoolean1 = new AtomicBoolean();
    this.x = localAtomicBoolean1;
    Object localObject5 = new Object();
    this.A = localObject5;
    Object localObject6 = new Object();
    this.D = localObject6;
    this.F = 0;
    Object localObject7 = new Object();
    this.G = localObject7;
    AtomicBoolean localAtomicBoolean2 = new AtomicBoolean();
    this.J = localAtomicBoolean2;
    this.K = true;
    AtomicBoolean localAtomicBoolean3 = new AtomicBoolean();
    this.L = localAtomicBoolean3;
    Object localObject8 = new Object();
    this.M = localObject8;
    ArrayList localArrayList = new ArrayList();
    this.N = localArrayList;
    if (paramString == null)
      throw new NullPointerException();
    int i1 = V();
    this.c = i1;
    int i2 = this.c * -1;
    this.b = i2;
    this.e = paramString;
    String str = f(paramString);
    this.f = str;
    this.C = "";
  }

  public static void N()
  {
    T.set(0);
    U.set(0);
  }

  public static int O()
  {
    return T.get();
  }

  public static int P()
  {
    return U.get();
  }

  public static void Q()
  {
    O = App.getSharedPreferences().getInt("unique_id", 10000);
  }

  public static void R()
  {
    synchronized (d)
    {
      if (!P)
      {
        int i1 = O;
        App.getSharedPreferences().edit().putInt("unique_id", i1).commit();
        P = true;
      }
      return;
    }
  }

  public static boolean S()
  {
    return Q.get();
  }

  private void U()
  {
    while (true)
    {
      Iterator localIterator;
      synchronized (this.M)
      {
        if (this.N.size() <= 0)
          continue;
        localIterator = this.N.iterator();
        if (!localIterator.hasNext())
          return;
        com.kksoft.readcm.c.f localf = (com.kksoft.readcm.c.f)localIterator.next();
        int i1 = this.b;
        if (localf.a(i1))
          App.handlerPost(new al(this, localf));
      }
      localIterator.remove();
    }
  }

  private static int V()
  {
    synchronized (d)
    {
      P = false;
      int i1 = O;
      O += 1;
      return i1;
    }
  }

  public static void a(boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3)
  {
    Q.set(paramBoolean1);
    R.set(paramBoolean2);
    S.set(paramBoolean3);
  }

  public static String f(String s1)
  {
	  Object obj;
	  StringBuilder stringbuilder;
    try
    {
    	
        obj = new URI(s1);
        Object obj1 = ((URI) (obj)).getScheme().toLowerCase();
        String s2 = h(s1).toLowerCase();
        if(((String) (obj1)).equals("https"))
            obj1 = "http";
        s2 = s2.replaceAll("^www[0-9]*\\.", "");
        String s3 = ((URI) (obj)).getRawFragment();
        if(s3 != null && !s3.contains("/") && s3.indexOf("!") != 0)
            s3 = null;
        String s4 = i(((URI) (obj)).getRawPath());
        String s5 = i(((URI) (obj)).getRawQuery());
        if(s4 != null)
        {
            if(s5 == null)
                if(s4.matches("^\\/index(\\.[a-z]{3,4})?$"))
                    s4 = null;
                else
                    s4 = s4.replaceAll("\\/index\\.(html?|php)$", "");
            if(s4 != null)
            {
                s4 = s4.replace("//", "/");
                if(s4.endsWith("/"))
                    if(s4.length() <= 1)
                    {
                        s4 = null;
                    } else
                    {
                        int j1 = s4.length() - 1;
                        s4 = s4.substring(0, j1);
                    }
            }
            if((s4 == null || s4.length() == 0) && s3 != null)
                s4 = "/";
        }
        obj1 = (new StringBuilder(String.valueOf(obj1))).append("://").append(s2);
        if(((URI) (obj)).getPort() != 80 && ((URI) (obj)).getPort() != -1)
        {
            stringbuilder = new StringBuilder(":");
            obj = stringbuilder.append(((URI) (obj)).getPort()).toString();
        } else
        {
            obj = "";
        }
        obj = ((StringBuilder) (obj1)).append(((String) (obj)));
        if(s4 != null)
            obj1 = s4;
        else
            obj1 = "";
        obj = ((StringBuilder) (obj)).append(((String) (obj1)));
        if(s5 != null)
            obj1 = (new StringBuilder("?")).append(s5).toString();
        else
            obj1 = "";
        obj = ((StringBuilder) (obj)).append(((String) (obj1)));
        if(s3 != null)
            obj1 = (new StringBuilder("#")).append(s3).toString();
        else
            obj1 = "";
        obj = ((StringBuilder) (obj)).append(((String) (obj1))).toString();
        App.b();
    }
    catch(Exception e)
    {
        obj = s1;
    }
    return ((String) (obj));
  }

  public static String g(String paramString)
  {
    return paramString.replace("#!", "?_escaped_fragment_=");
  }

  public static String h(String s1)
  {
	  int obj,i1 = 0;
      if(s1 == null || s1.length() == 0)
      {
          obj = 0;
      } else
      {
          obj = s1.indexOf("//") + 2;
          if(obj < 0)
              obj = 0;
          i1 = s1.indexOf('/', ((int) (obj)));
          if(i1 < 0)
              i1 = s1.length() - 1;
      }
      return s1.substring(((int) (obj)), i1);
  }

  private static String i(String paramString)
  {
	  Object localObject = a.matcher(paramString);
	    StringBuffer localStringBuffer1 = new StringBuffer();
    if ((paramString == null) || (paramString.length() == 0))
    {
      localObject = null;
    }
    else
    {
    	if (!((Matcher)localObject).find())
        {
          StringBuffer localStringBuffer2 = ((Matcher)localObject).appendTail(localStringBuffer1);
          localObject = localStringBuffer1.toString();
        }
        String str = ((Matcher)localObject).group().toUpperCase();
        Matcher localMatcher = ((Matcher)localObject).appendReplacement(localStringBuffer1, str);
    }
	return localObject.toString();
  }

  public final void A()
  {
    Object localObject1 = this.t;
    //monitorenter;
    Object localObject2 = null;
    try
    {
      this.y = null;
      this.z = null;
      //monitorexit;
      E();
      return;
    }
    finally
    {
      //monitorexit;
    }
    //throw localObject3;
  }

  public final void B()
  {
    Object localObject1 = this.t;
    //monitorenter;
    Object localObject2 = null;
    try
    {
      this.v = 0;
      this.u = 0;
      //monitorexit;
      E();
      return;
    }
    finally
    {
      //monitorexit;
    }
    //throw localObject3;
  }

  public final int C()
  {
    synchronized (this.t)
    {
      int i1 = this.u;
      return i1;
    }
  }

  public final int D()
  {
    synchronized (this.t)
    {
      int i1 = this.v;
      return i1;
    }
  }

  public final void E()
  {
    while (true)
    {
      Iterator localIterator;
      synchronized (this.M)
      {
        if (this.N.size() <= 0)
          continue;
        localIterator = this.N.iterator();
        if (!localIterator.hasNext())
          return;
        com.kksoft.readcm.c.f localf = (com.kksoft.readcm.c.f)localIterator.next();
        int i1 = this.b;
        if (localf.a(i1))
          App.handlerPost(new ao(this, localf));
      }
      localIterator.remove();
    }
  }

  public final boolean F()
  {
    synchronized (this.t)
    {
      if (((this.y == null) || (!this.y.r())) && ((this.z == null) || (!this.z.r())))
      {
        return false;
      }
      else return true;
    }
  }

  public final boolean G()
  {
    synchronized (this.t)
    {
      boolean bool = this.w;
      return bool;
    }
  }

  public final boolean H()
  {
    synchronized (this.t)
    {
      if (this.x.get())
      {
        if (Q.get())
        {
          if (this.w)
          {
            if ((this.u == 1) && (this.v == 1))
            	 return true;
            else
          	  return false;
          }
          if ((this.v != 1) && (this.u != 1))
        	  return true;
          else
        	  return false;
        } else
        if ((R.get()) && (S.get()))
        {
          if ((this.v == 1) && (this.u == 1))
          return true;
          else
        	  return false;
        }else
        if (R.get())
        {
          if (this.u == 1)
        	  return true;
          else
        	  return false;
        }else
        if (S.get())
        {
          if (this.v == 1)
        	  return true;
          else
        	  return false;
        }
        else
        	return false;
      }
      else
      {
    	  if ((this.v == 1) || (this.u == 1))
          	return true;
          else
        	  return false;
      }
    }
  }

  public final void I()
  {
    synchronized (this.G)
    {
      this.I = null;
      return;
    }
  }

  public final HashMap<Integer, u> J()
  {
    synchronized (this.G)
    {
      if (this.I == null)
      {
        return null;
      } else
      return new HashMap<Integer, u>(this.I);
    }
  }

  public final void K()
  {
    synchronized (this.G)
    {
      this.H = null;
      return;
    }
  }

  public final HashMap<Integer, q> L()
  {
    synchronized (this.G)
    {
      if (this.H == null)
      {
        return null;
      }else
      return new HashMap<Integer, q>(this.H);
    }
  }

  public final boolean M()
  {
    return this.L.get();
  }

  public final void T()
  {
    synchronized (this.M)
    {
      this.N.clear();
      return;
    }
  }

  public final int a()
  {
    return this.b;
  }

  public final f a(int paramInt)
  {
	  com.kksoft.readcm.objects.f f1;
      synchronized(D)
      {
          if(E != null)
          {
              HashMap hashmap = E;
              Integer integer = Integer.valueOf(paramInt);
              f1 = (com.kksoft.readcm.objects.f)hashmap.get(integer);
          } else
          {
              f1 = null;
          }
      }
      return f1;
  }

  // ERROR //
  public final void a(int paramInt, h paramh)
  {
    // Byte code:
    //   0: aload_2
    //   1: ifnonnull +4 -> 5
    //   4: return
    //   5: aload_0
    //   6: getfield 119	com/ideashower/readitlater/objects/l:t	Ljava/lang/Object;
    //   9: astore_3
    //   10: aload_3
    //   11: monitorenter
    //   12: iload_1
    //   13: tableswitch	default:+23 -> 36, 1:+69->82, 2:+39->52
    //   37: monitorexit
    //   38: aload_2
    //   39: invokevirtual 436	com/ideashower/readitlater/b/h:C	()Z
    //   42: ifeq -38 -> 4
    //   45: aload_0
    //   46: invokevirtual 400	com/ideashower/readitlater/objects/l:E	()V
    //   49: goto -45 -> 4
    //   52: aload_0
    //   53: aload_2
    //   54: putfield 396	com/ideashower/readitlater/objects/l:y	Lcom/ideashower/readitlater/b/h;
    //   57: aload_0
    //   58: getfield 398	com/ideashower/readitlater/objects/l:UserInfo	Lcom/ideashower/readitlater/b/h;
    //   61: ifnonnull -25 -> 36
    //   64: getstatic 99	com/ideashower/readitlater/objects/l:T	Ljava/util/concurrent/atomic/AtomicInteger;
    //   67: invokevirtual 439	java/util/concurrent/atomic/AtomicInteger:incrementAndGet	()I
    //   70: istore 4
    //   72: goto -36 -> 36
    //   75: astore 5
    //   77: aload_3
    //   78: monitorexit
    //   79: aload 5
    //   81: athrow
    //   82: aload_0
    //   83: aload_2
    //   84: putfield 398	com/ideashower/readitlater/objects/l:UserInfo	Lcom/ideashower/readitlater/b/h;
    //   87: aload_0
    //   88: getfield 396	com/ideashower/readitlater/objects/l:y	Lcom/ideashower/readitlater/b/h;
    //   91: ifnonnull -55 -> 36
    //   94: getstatic 99	com/ideashower/readitlater/objects/l:T	Ljava/util/concurrent/atomic/AtomicInteger;
    //   97: invokevirtual 439	java/util/concurrent/atomic/AtomicInteger:incrementAndGet	()I
    //   100: istore 6
    //   102: goto -66 -> 36
    //
    // Exception table:
    //   from	to	target	type
    //   36	38	75	finally
    //   52	75	75	finally
    //   82	102	75	finally
  }

  public final void a(int paramInt, boolean paramBoolean)
  {
    synchronized (this.t)
    {
      this.u = paramInt;
      if (paramBoolean)
        E();
      return;
    }
  }

  public final void a(long paramLong)
  {
    this.p.set(paramLong);
  }

  public final void a(com.kksoft.readcm.c.f paramf)
  {
    synchronized (this.M)
    {
      boolean bool = this.N.add(paramf);
      return;
    }
  }

  public final void a(f paramf)
  {
    synchronized (this.D)
    {
      if (this.E == null)
      {
        HashMap<Integer, f> localHashMap1 = new HashMap<Integer, f>();
        this.E = localHashMap1;
      }
      HashMap<Integer, f> localHashMap2 = this.E;
      Integer localInteger = Integer.valueOf(paramf.a());
      localHashMap2.put(localInteger, paramf);
      int i1 = paramf.e();
      this.F = i1;
      return;
    }
  }

  public final void a(q paramq)
  {
    synchronized (this.G)
    {
      if (this.H == null)
      {
        HashMap<Integer, q> localHashMap1 = new HashMap<Integer, q>();
        this.H = localHashMap1;
      }
      HashMap<Integer, q> localHashMap2 = this.H;
      Integer localInteger = Integer.valueOf(paramq.b());
      localHashMap2.put(localInteger, paramq);
      return;
    }
  }

  public final void a(u paramu)
  {
    synchronized (this.G)
    {
      if (this.I == null)
      {
        HashMap<Integer, u> localHashMap1 = new HashMap<Integer, u>();
        this.I = localHashMap1;
      }
      HashMap<Integer, u> localHashMap2 = this.I;
      Integer localInteger = Integer.valueOf(paramu.b());
      localHashMap2.put(localInteger, paramu);
      return;
    }
  }

  // ERROR //
  public final void a(String paramString)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 104	com/ideashower/readitlater/objects/l:g	Ljava/lang/Object;
    //   4: astore_2
    //   5: aload_2
    //   6: monitorenter
    //   7: aload_1
    //   8: ifnonnull +6 -> 14
    //   11: aload_2
    //   12: monitorexit
    //   13: return
    //   14: aload_0
    //   15: aload_1
    //   16: putfield 168	com/ideashower/readitlater/objects/l:h	Ljava/lang/String;
    //   19: aload_0
    //   20: aconst_null
    //   21: putfield 170	com/ideashower/readitlater/objects/l:i	Ljava/lang/String;
    //   24: aload_0
    //   25: aconst_null
    //   26: putfield 467	com/ideashower/readitlater/objects/l:k	Ljava/lang/String;
    //   29: aload_0
    //   30: aconst_null
    //   31: putfield 469	com/ideashower/readitlater/objects/l:j	Ljava/lang/String;
    //   34: aload_0
    //   35: aconst_null
    //   36: putfield 471	com/ideashower/readitlater/objects/l:l	Ljava/lang/String;
    //   39: aload_0
    //   40: invokevirtual 473	com/ideashower/readitlater/objects/l:f	()Ljava/lang/String;
    //   43: astore_3
    //   44: aload_0
    //   45: invokevirtual 475	com/ideashower/readitlater/objects/l:h	()Ljava/lang/String;
    //   48: astore 4
    //   50: aload_2
    //   51: monitorexit
    //   52: aload_0
    //   53: invokespecial 477	com/ideashower/readitlater/objects/l:U	()V
    //   56: goto -43 -> 13
    //   59: astore 5
    //   61: aload_2
    //   62: monitorexit
    //   63: aload 5
    //   65: athrow
    //
    // Exception table:
    //   from	to	target	type
    //   11	52	59	finally
    //   61	63	59	finally
  }

  public final void a(String paramString, boolean paramBoolean)
  {
    Object localObject1 = this.m;
    //monitorenter;
    if (paramString != null);
    try
    {
      String str;
      if (paramString.length() == 0)
        str = null;
      while (true)
      {
        //this.n = str;
        this.o = null;
        //monitorexit;
        U();
        //return;
        str = paramString.trim();
        if (!paramBoolean)
          continue;
        str  = org.b.a.a.j.a(str).replace("\r\n", "").replace("\n", "");
      }
    }
    finally
    {
      //monitorexit;
    }
    //throw localObject2;
  }

  public final void a(boolean paramBoolean)
  {
    this.K = paramBoolean;
  }

  public final int b()
  {
    return this.c;
  }

  // ERROR //
  public final h b(int paramInt)
  {
	return null;
    // Byte code:
    //   0: aload_0
    //   1: getfield 119	com/ideashower/readitlater/objects/l:t	Ljava/lang/Object;
    //   4: astore_2
    //   5: aload_2
    //   6: monitorenter
    //   7: iload_1
    //   8: tableswitch	default:+24 -> 32, 1:+42->50, 2:+30->38
    //   33: monitorexit
    //   34: aconst_null
    //   35: astore_2
    //   36: aload_2
    //   37: areturn
    //   38: aload_0
    //   39: getfield 396	com/ideashower/readitlater/objects/l:y	Lcom/ideashower/readitlater/b/h;
    //   42: astore_3
    //   43: aload_2
    //   44: monitorexit
    //   45: aload_3
    //   46: astore_2
    //   47: goto -11 -> 36
    //   50: aload_0
    //   51: getfield 398	com/ideashower/readitlater/objects/l:UserInfo	Lcom/ideashower/readitlater/b/h;
    //   54: astore 4
    //   56: aload_2
    //   57: monitorexit
    //   58: aload 4
    //   60: astore_2
    //   61: goto -25 -> 36
    //   64: astore 5
    //   66: aload_2
    //   67: monitorexit
    //   68: aload 5
    //   70: athrow
    //
    // Exception table:
    //   from	to	target	type
    //   32	64	64	finally
  }

  public final void b(int paramInt, boolean paramBoolean)
  {
    synchronized (this.t)
    {
      this.v = paramInt;
      if (paramBoolean)
        E();
      return;
    }
  }

  public final void b(com.kksoft.readcm.c.f paramf)
  {
    synchronized (this.M)
    {
      boolean bool = this.N.remove(paramf);
      return;
    }
  }

  public final void b(f paramf)
  {
    synchronized (this.D)
    {
      if (this.E == null)
      {
        HashMap localHashMap1 = new HashMap();
        this.E = localHashMap1;
      }
      HashMap localHashMap2 = this.E;
      Integer localInteger = Integer.valueOf(paramf.a());
      Object localObject2 = localHashMap2.put(localInteger, paramf);
      int i1 = paramf.e();
      this.F = i1;
      return;
    }
  }

  public final void b(String paramString)
  {
//    Object localObject1 = this.A;
//    monitorenter;
//    if (paramString == null);
//    try
//    {
//      int i2;
//      for (Object localObject2 = ""; ; localObject2 = paramString.toLowerCase())
//      {
//        this.C = "";
//        ArrayList localArrayList = new ArrayList();
//        this.B = localArrayList;
//        localObject2 = ((String)localObject2).split("\\s*?,\\s*?");
//        int i1 = localObject2.length;
//        i2 = 0;
//        if (i2 < i1)
//          break;
//        return;
//      }
//      String str1 = localObject2[i2].trim();
//      if ((str1.length() != 0) && (!this.B.contains(str1)))
//      {
//        boolean bool = this.B.add(str1);
//        String str2 = this.C;
//        if (this.C.length() > 0)
//          str1 = ", " + str1;
//        String str3 = str2.concat(str1);
//        this.C = str3;
//      }
//      i2 += 1;
//    }
//    finally
//    {
//      monitorexit;
//    }
  }

  public final void b(boolean paramBoolean)
  {
    synchronized (this.t)
    {
      this.w = paramBoolean;
      return;
    }
  }

  public final String c()
  {
    return this.e;
  }

  // ERROR //
  public final void c(int paramInt)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 119	com/ideashower/readitlater/objects/l:t	Ljava/lang/Object;
    //   4: astore_2
    //   5: aload_2
    //   6: monitorenter
    //   7: iload_1
    //   8: tableswitch	default:+24 -> 32, 1:+63->71, 2:+31->39
    //   33: monitorexit
    //   34: aload_0
    //   35: invokevirtual 400	com/ideashower/readitlater/objects/l:E	()V
    //   38: return
    //   39: aconst_null
    //   40: astore_3
    //   41: aload_0
    //   42: aload_3
    //   43: putfield 396	com/ideashower/readitlater/objects/l:y	Lcom/ideashower/readitlater/b/h;
    //   46: aload_0
    //   47: getfield 398	com/ideashower/readitlater/objects/l:UserInfo	Lcom/ideashower/readitlater/b/h;
    //   50: ifnonnull -18 -> 32
    //   53: getstatic 101	com/ideashower/readitlater/objects/l:U	Ljava/util/concurrent/atomic/AtomicInteger;
    //   56: invokevirtual 439	java/util/concurrent/atomic/AtomicInteger:incrementAndGet	()I
    //   59: istore 4
    //   61: goto -29 -> 32
    //   64: astore 5
    //   66: aload_2
    //   67: monitorexit
    //   68: aload 5
    //   70: athrow
    //   71: aconst_null
    //   72: astore_3
    //   73: aload_0
    //   74: aload_3
    //   75: putfield 398	com/ideashower/readitlater/objects/l:UserInfo	Lcom/ideashower/readitlater/b/h;
    //   78: aload_0
    //   79: getfield 396	com/ideashower/readitlater/objects/l:y	Lcom/ideashower/readitlater/b/h;
    //   82: ifnonnull -50 -> 32
    //   85: getstatic 101	com/ideashower/readitlater/objects/l:U	Ljava/util/concurrent/atomic/AtomicInteger;
    //   88: invokevirtual 439	java/util/concurrent/atomic/AtomicInteger:incrementAndGet	()I
    //   91: istore 6
    //   93: goto -61 -> 32
    //
    // Exception table:
    //   from	to	target	type
    //   32	34	64	finally
    //   41	64	64	finally
    //   73	93	64	finally
  }

  public final void c(String paramString)
  {
//    while (true)
//    {
//      String str1;
//      synchronized (this.A)
//      {
//        if (this.B != null)
//          continue;
//        ArrayList localArrayList = new ArrayList();
//        this.B = localArrayList;
//        str1 = paramString.trim();
//        if ((str1.length() == 0) || (this.B.contains(str1)))
//          return;
//        String str2 = this.C;
//        if (this.C.length() > 0)
//        {
//          str3 = ", " + str1;
//          String str4 = str2.concat(str3);
//          this.C = str4;
//          boolean bool = this.B.add(str1);
//        }
//      }
//      String str3 = str1;
//    }
  }

  public final void c(boolean paramBoolean)
  {
    this.L.set(paramBoolean);
  }

  public final String d()
  {
    return this.f;
  }

  public final void d(String paramString)
  {
    synchronized (this.q)
    {
      this.r = paramString;
      return;
    }
  }

  public final String e()
  {
    synchronized (this.g)
    {
      if (this.h == null)
      {
        String str1 = this.e;
        this.h = str1;
      }
      String str2 = this.h;
      return str2;
    }
  }

  public final void e(String paramString)
  {
    synchronized (this.q)
    {
      this.s = paramString;
      return;
    }
  }

  public final String f()
  {
    synchronized (this.g)
    {
      if (this.i == null)
      {
        String str1 = f(e());
        this.i = str1;
      }
      String str2 = this.i;
      return str2;
    }
  }

  public final String g()
  {
    synchronized (this.g)
    {
      if (this.k == null)
      {
        String str1 = e().toLowerCase();
        this.k = str1;
      }
      String str2 = this.k;
      return str2;
    }
  }

  public final String h()
  {
    synchronized (this.g)
    {
      if (this.j == null)
      {
        String str1 = h(e());
        this.j = str1;
      }
      String str2 = this.j;
      return str2;
    }
  }

  public final String i()
  {
    synchronized (this.g)
    {
      if (this.l == null)
      {
        String str1 = h().toLowerCase();
        this.l = str1;
      }
      String str2 = this.l;
      return str2;
    }
  }

  public final String j()
  {
    synchronized (this.m)
    {
      String str = this.n;
      return str;
    }
  }

  public final String k()
  {
    synchronized (this.m)
    {
      if (this.n == null)
      {
    	  return "";
      } else return  this.n;
    }
  }

  public final String l()
  {
    synchronized (this.m)
    {
      if (this.n == null)
      {
        return e();
      } else return  this.n;
    }
  }

  public final String m()
  {
    synchronized (this.m)
    {
      if (this.o == null)
      {
        String str1 = k().toLowerCase();
        this.o = str1;
      }
      String str2 = this.o;
      return str2;
    }
  }

  public final long n()
  {
    return this.p.get();
  }

  public final String o()
  {
    synchronized (this.A)
    {
      String str = this.C;
      return str;
    }
  }

  public final int p()
  {
    synchronized (this.A)
    {
      if (this.B == null)
      {
        return 0;
      }
      else
    	  return this.B.size();
    }
  }

  public final ArrayList q()
  {
    synchronized (this.A)
    {
      if (this.B == null)
      {
        ArrayList localArrayList1 = new ArrayList();
        this.B = localArrayList1;
      }
      return new ArrayList(this.B);
    }
  }

  public final boolean r()
  {
    synchronized (this.A)
    {
      if (this.C.length() > 0)
      {
        return true;
      }
      else return false;
    }
  }

  public final int s()
  {
    synchronized (this.D)
    {
      int i1 = this.F;
      return i1;
    }
  }

  public final boolean t()
  {
    synchronized (this.D)
    {
      if ((this.E != null) && (this.E.size() > 0))
      {
    	  return true;
      }
      else return false;
    }
  }

  public final JSONObject u()
  {
    synchronized (this.D)
    {
      return com.kksoft.readcm.objects.f.a(E);
    }
  }

  public final String v()
  {
    synchronized (this.q)
    {
      if (this.s == null)
        this.s = "";
      String str = this.s;
      return str;
    }
  }

  public final String w()
  {
    synchronized (this.q)
    {
      if (this.r == null)
        this.r = "";
      String str = this.r;
      return str;
    }
  }

  public final boolean x()
  {
    return this.K;
  }

  public final void y()
  {
    E();
  }

  public final void z()
  {
    synchronized (this.t)
    {
      if (this.y != null)
        this.y.n();
      if (this.z != null)
        this.z.n();
      int i1 = T.decrementAndGet();
      A();
      return;
    }
  }
}